﻿@using System.Web.Optimization
@using Helpers

<!DOCTYPE html>
<html lang="en">
    <head>               
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">   
        <title>Custom HtmlHelper for filtering the input in a text box</title>
        <meta name="description" content="Carteregalo B2B">
        @Scripts.Render("~/allJs")
    </head>
    <body>  
        Allows only alphabetic characters
        <br/>        
        @Html.AlphabeticCharactersTextBox("tbAlphabeticCharacters", string.Empty, new Dictionary<string, object>{{"class", "testCssClass"}})
        <br/>
        Allows only numbers
        <br/>
        @Html.NumbersTextBox("tbNumbers").SetValue("123ABC").SetHtmlAttributes(new Dictionary<string, object>{ { "style", "background-color: green;" } })
        <br/>
        Allows numbers and the decimal separator as defined by the current culture info
        <br/>
        @Html.DecimalNumbersTextBox("tbDecimalNumbers")
        <br/>
        Allows numbers, the decimal separator and the currency group separator as defined by the current culture info
        <br/>
        @Html.DecimalNumbersWithGroupSeparatorTextBox("tbDecimalNumbersWithGroups")
        <br/>
        Allows the following characters: abcd\
        <br/>
        @Html.ValidCharactersFilteredTextBox("tbValidCharacters", "abcd\\")
        <br/>
        Allows all characters except: abcd\
        <br/>
        @Html.InvalidCharactersFilteredTextBox("tbInvalidCharacters", "abcd\\")                
    </body>
</html>